package com.mission.datasave

import android.content.SharedPreferences

/**
 * Created by KevenTao on 1/11/21.
 */
fun SharedPreferences.open(block: SharedPreferences.Editor.() -> Unit) {
    val edit = edit()
    edit.block()
    edit.apply()
}